/*
 * @Author: 华芊芊 huaqianqian@yeah.net
 * @Date: 2023-09-22 10:08:44
 * @LastEditors: 华芊芊 huaqianqian@yeah.net
 * @LastEditTime: 2023-11-09 11:01:24
 * @FilePath: \zmglpt-ui-screen\src\api\market.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import request from '@/utils/request'

let paramsTemp = {
  // ...JSON.parse(localStorage.getItem('PICKTIME')),
  columnName: "prov_org_uuid",
  orgUuid: "00000000000000000000000011340001",
}
// 电子烟管 行政许可 持证户数
export const getECigarHoldLicNum = (params = {}) =>
  request({
    url: '/electronic_cigarettes_schema_ah_v1/',
    method: 'get',
    params: { ...paramsTemp, ...params },
    custom: { catch: true },
  })
// 打击监管
export const getECigarCaseNum = (params = {}) =>
  request({
    url: '/electronic_case_schema_ah_v1/',
    method: 'get',
    params: { ...paramsTemp, ...params },
    custom: { catch: true },
  })
export const getMapData = (params = {}) =>
  request({
    url: '/ecigar_for_map_ah_v1/',
    method: 'get',
    params: { ...paramsTemp, ...params },
    custom: { catch: true },
  })
//交易管理
export const getElectronicCigTradeMgt = (params = {}) =>
  request({
    url: '/electronic_cig_trade_mgt_ah_v1/',
    method: 'get',
    params: { ...paramsTemp, ...params },
    custom: { catch: true },
  })
//交易管理
export const getElectronicCigSaleStat = (params = {}) =>
  request({
    url: '/electronic_cig_sale_stat_ah_v1/',
    method: 'get',
    params: { ...paramsTemp, ...params },
    custom: { catch: true },
  })
//客户盈利
export const getElectronicCigCustProft = (params = {}) =>
  request({
    url: '/electronic_cig_cust_proft_ah_v1/',
    method: 'get',
    params: { ...paramsTemp, ...params },
    custom: { catch: true },
  })


export function getECigarCityData(params) {
  console.info(params)
  return request({
    url: '/electronic_cig_city_ah_v1/',
    method: 'get',
    params: { ...paramsTemp, ...params },
    custom: { catch: true },
  })
}
// 销售趋势
export function getECigarAmtData(params) {
  console.info(params)
  return request({
    url: '/electronic_cig_amt_ah_v1/',
    method: 'get',
    params: { ...paramsTemp, ...params },
    custom: { catch: true },
  })
}

// 电子烟批发企业毛利额趋势
export function getEnterpriseGrossProfit(params) {
  console.info(params)
  return request({
    url: '/enterprise_gross_profit_ah_v1/',
    method: 'get',
    params: { ...paramsTemp, ...params },
    custom: { catch: true },
  })
}


// 电子烟订货比排名
export function getEnterpriseOrderRatioRanking(params) {
  console.info(params)
  return request({
    url: '/enterprise_order_ratio_ranking_ah_v1/',
    method: 'get',
    params: { ...paramsTemp, ...params },
    custom: { catch: true },
  })
}


// 电子烟销量排名
export function getEnterpriseSellNumberRanking(params) {
  console.info(params)
  return request({
    url: '/enterprise_sell_number_ranking_ah_v1/',
    method: 'get',
    params: { ...paramsTemp, ...params },
    custom: { catch: true },
  })
}

// 电子烟对标数据
export function getEcigarBmkData(params) {
  console.info(params)
  return request({
    url: '/ecigar_bmk_data_ah_v1/',
    method: 'get',
    params: { ...paramsTemp, ...params },
    custom: { catch: true },
  })
}